﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MinistryStandardPlatformWeb.Models
{
    public class RealTimeModel
    {
        public string id { get; set; }//车辆内部编号
        public string name { get; set; }//车牌号
        public string sim { get; set; }//sim卡号
        public string depart { get; set; }//所属单位
        public string lng { get; set;}//经度
        public string lat { get; set; }//纬度
        public string addr { get; set; }//地址
        public string dire { get; set; }//方向
        public string gpsSpeed { get; set; }//gps速度
        public string gpsMileage { get; set; }//gps里程
        public string devSpeed { get; set; }//仪表速度
        public string devMileage { get; set; }//仪表里程
        public string battery { get; set; }//电量
        public string oil { get; set; }//油量
        public string acc { get; set; }//acc
        public string time { get; set; }//上传时间

        /*以下为报警信息，具体字段意思参考文档*/
        public string warn { get; set; }
        public string warn0 { get; set; }
        public string warn1 { get; set; }
        public string warn2 { get; set; }
        public string warn3 { get; set; }
        public string warn4 { get; set; }
        public string warn5 { get; set; }
        public string warn6 { get; set; }
        public string warn7 { get; set; }
        public string warn8 { get; set; }
        public string warn9 { get; set; }
        public string warn10 { get; set; }
        public string warn11 { get; set; }
        public string warn12 { get; set; }
        public string warn13 { get; set; }
        public string warn14 { get; set; }
        public string warn15 { get; set; }
        public string warn16 { get; set; }
        public string warn17 { get; set; }
        public string warn18 { get; set; }
        public string warn19 { get; set; }
        public string warn20 { get; set; }
        public string warn21 { get; set; }
        public string warn22 { get; set; }
        public string warn23 { get; set; }
        public string warn24 { get; set; }
        public string warn25 { get; set; }
        public string warn26 { get; set; }
        public string warn27 { get; set; }
        public string warn28 { get; set; }
        public string warn29 { get; set; }
        public string warn30 { get; set; }
        public string warn31 { get; set; }
        public string warn32 { get; set; }
        public string warn33 { get; set; }
        public string warn34 { get; set; }
        public string warn35 { get; set; }
        public string warn36 { get; set; }
        public string warn37 { get; set; }
        public string warn38 { get; set; }
        public string warn39 { get; set; }
        public string warn40 { get; set; }
        public string warn41 { get; set; }
        public string warn42 { get; set; }

        /*以下为状态信息，具体字段意思参考文档*/
        public string state  { get; set; }
        private string state0_0;
        public string state0
        {
            get { return state0_0; }
            set
            {
                if (value.Equals("0"))
                    state0_0 = "关";
                else
                    state0_0 = "开";
            }
        }
        public string state1 { get; set; }
        public string state2 { get; set; }
        public string state3 { get; set; }
        public string state4 { get; set; }
        public string state5 { get; set; }
        public string state6 { get; set; }
        public string state7 { get; set; }
        public string state8 { get; set; }
        public string state9 { get; set; }
        public string state10 { get; set; }
        public string state11 { get; set; }
        public string state12 { get; set; }
        public string state13 { get; set; }
        public string state14 { get; set; }
        public string state15 { get; set; }
        public string state16 { get; set; }
        public string state17 { get; set; }
        public string state18 { get; set; }
        public string state19 { get; set; }
        public string state20 { get; set; }
        public string state21 { get; set; }
        public string state22 { get; set; }
        public string state23 { get; set; }
        public string state24 { get; set; }
        public string state25 { get; set; }
        public string state26 { get; set; }
        public string state27 { get; set; }
        public string state28 { get; set; }
        public string state29 { get; set; }
        public string state30 { get; set; }
        public string state31 { get; set; }
        public string state32 { get; set; }
        public string state33 { get; set; }
        public string state34 { get; set; }
        public string state35 { get; set; }
        public string state36 { get; set; }
        public string state37 { get; set; }
        public string state38 { get; set; }
        public string state39 { get; set; }
        public string state40 { get; set; }
        private string state41_0;//正反转
        public string state41
        {
            get { return state41_0; }
            set
            {
                if (value.Equals("0"))
                    state41_0 = "不转";
                else if(value.Equals("1"))
                    state41_0 = "正转";
                else
                    state41_0 = "反转";
            }
        }
        public string state42 { get; set; }
        public string state43 { get; set; }
        public string state44 { get; set; }
        public string state45 { get; set; }
    }
}